package org.dawning.shop.common.commands.inventory;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.axonframework.commandhandling.TargetAggregateIdentifier;

/**
 * Created by Cc on 2017/6/8.
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CreateInventoryCommand {

    @TargetAggregateIdentifier
    private String id;

    /**
     *  商品库存数量
     */
    private Long amount;

    /**
     *  商品库存警告数量
     */
    private Long warnAmount;
}

